package com.fbty.mt.utils;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * 创建线程池
 * <p>Title: </p>
 * <p>Description: </p>
 * <p>Company:leysauron@gmail.com </p>
 * @author sauron create 2012-12-2
 * @version 0.1
 *
 */
public class SingletonThreadPool {
	private static SingletonThreadPool stp = new SingletonThreadPool();
	
	private ExecutorService pool = Executors.newFixedThreadPool(10);
	
	private SingletonThreadPool(){}
	
	private boolean temp = true;
	public static SingletonThreadPool getInstance(){
			return stp;
	}

	public ExecutorService getPool() {
		return pool;
	}

	public boolean isTemp() {
		return temp;
	}

	public void setTemp(boolean temp) {
		this.temp = temp;
	}
	
	
}
